﻿using MQTTnet.Protocol;

namespace SpeedOctopusNet.Service.Transmission;

public class Topic
{
    public string Name { get; init; }
    public string TopicDesc { get; init; }
    public MqttQualityOfServiceLevel QosLevel { get; set; }
    public bool Retain { get; set; }

    public Topic()
    { }

    public Topic(string topicName, MqttQualityOfServiceLevel qosLevel, bool retain = false)
    {
        Name = topicName;
        QosLevel = qosLevel;
        Retain = retain;
    }
}
